package com.twu.biblioteca;

import java.util.*;

/**
 * Created by kathy on 17/04/14.
 */
public class UserInformation implements Action {

    private IConsoleWriter consoleWriter;

    public UserInformation(IConsoleWriter consoleWriter){
        this.consoleWriter = consoleWriter;
    }

    public void execute(){

        if(BibliotecaApp.currentUser != null) {
            consoleWriter.println("Your information as below: ");
            BibliotecaApp.currentUser.printUser();
        }
    }
}
